package cn.faster.sys.mapper;

import cn.faster.sys.entity.SysRoleMenuCenter;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 角色权限中间表 Mapper 接口
 * </p>
 *
 * @author xiaoCoder
 * @since 2021-06-10
 */

@Mapper
public interface SysRoleMenuCenterMapper extends BaseMapper<SysRoleMenuCenter> {

   /**
	* 根据id查询RoleMenuCenter
	*/
	SysRoleMenuCenter getRoleMenuCenterById(@Param(value = "id") Long id) throws Exception;

	/**
	* 查询RoleMenuCenter列表
	*/
	List<SysRoleMenuCenter> listRoleMenuCenter(Map<String, Object> map) throws Exception;


	/**
	* 新增RoleMenuCenter
	*/
	Integer addRoleMenuCenter(SysRoleMenuCenter sysRoleMenuCenter) throws Exception;

	/**
	* 更新RoleMenuCenter
	*/
	Integer updateRoleMenuCenter(SysRoleMenuCenter sysRoleMenuCenter) throws Exception;

	/**
	* 根据id物理删除RoleMenuCenter
	*/
	Integer deleteRoleMenuCenterById(@Param(value = "id") Integer id)	throws Exception;

	/**
	* 根据id逻辑删除RoleMenuCenter
	*/
	Integer removeRoleMenuCenterById(@Param(value = "id") Integer id)	throws Exception;
}
